import Home from '../views/Home/index.vue'


export default [
  {
    path: '/',
    name: 'home',
    component: Home,
    children: [
      {
        path: '/browser',
        name: '浏览器',
        component: () => import('../views/Browser/index.vue')
      },
      {
        path: '/terminal',
        name: '终端',
        component: () => import('../views/Terminal/index.vue')
      },
      {
        path: '/launch',
        name: '启动台',
        component: () => import('../views/Launch/index.vue')
      }
    ]
  },
  {
    path: '/code-compiler',
    name: '代码编译器',
    // route level code-splitting
    // this generates a separate chunk (About.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import('../views/CodeCompiler/BaseCompiler/index.vue')
  },
  {
    path: '/react-compiler',
    name: 'React代码编译器',
    // route level code-splitting
    // this generates a separate chunk (About.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import('../views/CodeCompiler/ReactCompiler/index.vue')
  },
  {
    path: '/chat',
    name: '聊天室',
    // component: () => import('../views/Chat/index.vue'),
    children: [
      {
        path: 'index',
        name: '聊天页面',
        component: () => import('../views/Chat/index.vue')
      },
      {
        path: 'login',
        name: '登录',
        component: () => import('../views/Chat/Login/index.vue')
      },
      {
        path: 'register',
        name: '注册',
        component: () => import('../views/Chat/Register/index.vue')
      }
    ]
  }
]
